//package sunflower.controller;
//
//import org.springframework.security.core.annotation.AuthenticationPrincipal;
//import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @description:
// * @author: TanJingyu
// * @create: 2021-09-29 18:28
// **/
//@RestController
//@RequestMapping
//public class IndexController {
//
//    @GetMapping
//    public String index(@AuthenticationPrincipal OAuth2AuthenticatedPrincipal principal) {
//        return (String) principal.getAttribute("sub");
//    }
//}
